.class public Les/d10;
.super Ljava/lang/Object;
.source "DlnaDeviceBrowser.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/d10$b;
    }
.end annotation


# instance fields
.field private a:Les/d10$b;

.field private final b:Ljava/lang/Runnable;

.field private final c:Landroid/os/Handler;

.field private d:Z


# direct methods
.method public constructor <init>(Les/d10$b;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/d10;->a:Les/d10$b;

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Les/d10;->d:Z

    .line 4
    new-instance p1, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {p1, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object p1, p0, Les/d10;->c:Landroid/os/Handler;

    .line 5
    new-instance p1, Les/d10$a;

    invoke-direct {p1, p0}, Les/d10$a;-><init>(Les/d10;)V

    iput-object p1, p0, Les/d10;->b:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic a(Les/d10;)Les/d10$b;
    .locals 0

    .line 1
    iget-object p0, p0, Les/d10;->a:Les/d10$b;

    return-object p0
.end method

.method static synthetic a(Les/d10;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/d10;->d:Z

    return p1
.end method


# virtual methods
.method public declared-synchronized a()V
    .locals 2

    monitor-enter p0

    .line 18
    :try_start_0
    iget-object v0, p0, Les/d10;->c:Landroid/os/Handler;

    iget-object v1, p0, Les/d10;->b:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    const/4 v0, 0x0

    .line 19
    iput-boolean v0, p0, Les/d10;->d:Z

    .line 20
    iget-object v0, p0, Les/d10;->a:Les/d10$b;

    if-eqz v0, :cond_0

    .line 21
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v0

    iget-object v1, p0, Les/d10;->a:Les/d10$b;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/core/b;->b(Les/e10;)V

    const/4 v0, 0x0

    .line 22
    iput-object v0, p0, Les/d10;->a:Les/d10$b;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 23
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Z)V
    .locals 3

    monitor-enter p0

    .line 3
    :try_start_0
    iget-boolean v0, p0, Les/d10;->d:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 4
    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 5
    :try_start_1
    iput-boolean v0, p0, Les/d10;->d:Z

    .line 6
    iget-object v0, p0, Les/d10;->a:Les/d10$b;

    if-eqz v0, :cond_1

    .line 7
    iget-object v0, p0, Les/d10;->a:Les/d10$b;

    invoke-virtual {v0}, Les/d10$b;->b()V

    .line 8
    :cond_1
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v0

    iget-object v1, p0, Les/d10;->a:Les/d10$b;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/core/b;->a(Les/e10;)V

    if-nez p1, :cond_2

    .line 9
    iget-object v0, p0, Les/d10;->a:Les/d10$b;

    if-eqz v0, :cond_2

    .line 10
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 11
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/dlna/core/b;->b()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 12
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/l10;

    .line 13
    iget-object v2, p0, Les/d10;->a:Les/d10$b;

    invoke-virtual {v2, v1}, Les/d10$b;->a(Les/l10;)V

    goto :goto_0

    .line 14
    :cond_2
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/dlna/core/b;->a(Z)V

    .line 15
    iget-object p1, p0, Les/d10;->c:Landroid/os/Handler;

    iget-object v0, p0, Les/d10;->b:Ljava/lang/Runnable;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 16
    iget-object p1, p0, Les/d10;->c:Landroid/os/Handler;

    iget-object v0, p0, Les/d10;->b:Ljava/lang/Runnable;

    const-wide/16 v1, 0x9c4

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 17
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Les/d10;->a(Z)V

    return-void
.end method
